//
//  UIView+YSFrame.h
//  YSPageViewExample_OC
//
//  Created by MOLBASE on 2017/12/5.
//  Copyright © 2017年 YangShen. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface UIView (YSFrame)

@property (nonatomic, assign) CGFloat ys_x;
@property (nonatomic, assign) CGFloat ys_y;
@property (nonatomic, assign) CGFloat ys_width;
@property (nonatomic, assign) CGFloat ys_height;

@property (nonatomic, assign) CGFloat ys_centerX;
@property (nonatomic, assign) CGFloat ys_centerY;

@end

@interface UIColor (YSRGB)
+ (UIColor *)randomColor;

/**
 获取颜色的RGB数组
 */
- (NSArray<NSNumber *> *)getRGBComponents;

@end
